import Vue from 'vue'
import VueI18n from 'vue-i18n'
import zhEl from 'element-ui/lib/locale/lang/zh-CN'
import enEl from 'element-ui/lib/locale/lang/en'
import cosZh from './zh'
import cosEn from './en'
Vue.use(VueI18n)

const messages = {
  zh: {
    morning: '早安',
    wish: ',祝你开心每一天！',
    ...zhEl,
    ...cosZh
  },
  en: {
    morning: 'Good morning',
    wish: ',Wish you happy every day!',
    ...enEl,
    ...cosEn
  }
}

const i18n = new VueI18n({
  locale: 'zh',
  messages: messages

})

export default i18n
